<template>
  <div class="home">
    <HelloWorld msg="Welcome to Your Vue.js + TypeScript App" age="你好" />
  </div>
</template>

<script lang="ts">
import { Options, Vue } from 'vue-class-component';
import HelloWorld from '@/components/HelloWorld.vue'; 
import axios from '../common/index'
@Options({
  components: {
    HelloWorld,
  },
  methods(){
  
  },
  mounted(){
    console.log(11);
    axios.get('/api/getUser').then(res=>{
       console.log(res);   
    })
   
   
    console.log(21);
    
  }
})
export default class Home extends Vue {}
</script>
